package com.ithema.text;

import java.util.Scanner;

public class Cy {
    public static void main(String[] args) {
        Scanner cs= new Scanner(System.in);
        System.out.println("请输入对称字符串：");
        String s = cs.nextLine();
        StringBuilder sc=new StringBuilder(s);
            sc.reverse();
            String s1 = sc.toString();
            if(s.equals(s1)){
            System.out.println("是对称字符串");
        }else {
            System.out.println("不是对称字符串");
        }
    }
}
